[INFO] cloning repository https://github.com/Zahlkovsk1/Fiscal-Middleware
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Zahlkovsk1/Fiscal-Middleware" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZahlkovsk1%2FFiscal-Middleware", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZahlkovsk1%2FFiscal-Middleware'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 5a67d8d89c6ae081302ca548313e6049920bc903
[INFO] fixing Zahlkovsk1/Fiscal-Middleware against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZahlkovsk1%2FFiscal-Middleware" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Zahlkovsk1/Fiscal-Middleware
[INFO] finished tweaking git repo https://github.com/Zahlkovsk1/Fiscal-Middleware
[INFO] tweaked toml for git repo https://github.com/Zahlkovsk1/Fiscal-Middleware written to /workspace/builds/worker-4-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Zahlkovsk1/Fiscal-Middleware on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Zahlkovsk1/Fiscal-Middleware already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] d08cf999649fdb3e262ccb7268df7867218c889d73831685daecf34fe863c8a3
[INFO] running `Command { std: "docker" "start" "d08cf999649fdb3e262ccb7268df7867218c889d73831685daecf34fe863c8a3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d08cf999649fdb3e262ccb7268df7867218c889d73831685daecf34fe863c8a3" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d08cf999649fdb3e262ccb7268df7867218c889d73831685daecf34fe863c8a3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d08cf999649fdb3e262ccb7268df7867218c889d73831685daecf34fe863c8a3" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]    Compiling serde_core v1.0.228
[INFO] [stderr]    Compiling libc v0.2.182
[INFO] [stderr]    Compiling zerovec-derive v0.11.2
[INFO] [stderr]    Compiling thiserror-impl v2.0.18
[INFO] [stderr]     Checking tracing-core v0.1.36
[INFO] [stderr]    Compiling block-buffer v0.10.4
[INFO] [stderr]    Compiling crypto-common v0.1.7
[INFO] [stderr]    Compiling subtle v2.6.1
[INFO] [stderr]    Compiling zerofrom-derive v0.1.6
[INFO] [stderr]    Compiling yoke-derive v0.8.1
[INFO] [stderr]    Compiling tokio-macros v2.6.1
[INFO] [stderr]     Checking socket2 v0.6.3
[INFO] [stderr]    Compiling icu_properties_data v2.1.2
[INFO] [stderr]     Checking futures-sink v0.3.32
[INFO] [stderr]    Compiling futures-core v0.3.32
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]    Compiling zerocopy v0.8.40
[INFO] [stderr]     Checking getrandom v0.2.17
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling bytes v1.11.1
[INFO] [stderr]    Compiling foldhash v0.1.5
[INFO] [stderr]    Compiling form_urlencoded v1.2.2
[INFO] [stderr]    Compiling hashbrown v0.15.5
[INFO] [stderr]     Checking tracing v0.1.44
[INFO] [stderr]    Compiling itoa v1.0.17
[INFO] [stderr]    Compiling iana-time-zone v0.1.65
[INFO] [stderr]    Compiling slab v0.4.12
[INFO] [stderr]    Compiling futures-io v0.3.32
[INFO] [stderr]    Compiling sha2 v0.10.9
[INFO] [stderr]     Checking futures-util v0.3.32
[INFO] [stderr]    Compiling event-listener v5.4.1
[INFO] [stderr]    Compiling mio v1.1.1
[INFO] [stderr]    Compiling hmac v0.12.1
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]     Checking futures-channel v0.3.32
[INFO] [stderr]    Compiling chrono v0.4.44
[INFO] [stderr]    Compiling hashlink v0.10.0
[INFO] [stderr]    Compiling base64 v0.22.1
[INFO] [stderr]    Compiling uuid v1.22.0
[INFO] [stderr]    Compiling hkdf v0.12.4
[INFO] [stderr]    Compiling atoi v2.0.0
[INFO] [stderr]     Checking getrandom v0.4.2
[INFO] [stderr]    Compiling md-5 v0.10.6
[INFO] [stderr]    Compiling num-conv v0.2.0
[INFO] [stderr]    Compiling tokio v1.50.0
[INFO] [stderr]    Compiling bitflags v2.11.0
[INFO] [stderr]    Compiling zerofrom v0.1.6
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]    Compiling time-macros v0.2.27
[INFO] [stderr]    Compiling ring v0.17.14
[INFO] [stderr]    Compiling yoke v0.8.1
[INFO] [stderr]     Checking regex-syntax v0.8.10
[INFO] [stderr]    Compiling thiserror v2.0.18
[INFO] [stderr]    Compiling zerovec v0.11.5
[INFO] [stderr]    Compiling zerotrie v0.2.3
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking regex-automata v0.4.14
[INFO] [stderr]    Compiling serde v1.0.228
[INFO] [stderr]    Compiling serde_json v1.0.149
[INFO] [stderr]     Checking axum-core v0.5.6
[INFO] [stderr]     Checking serde_path_to_error v0.1.20
[INFO] [stderr]     Checking tinystr v0.8.2
[INFO] [stderr]     Checking potential_utf v0.1.4
[INFO] [stderr]     Checking icu_collections v2.1.1
[INFO] [stderr]     Checking time v0.3.47
[INFO] [stderr]     Checking icu_locale_core v2.1.1
[INFO] [stderr]    Compiling smallvec v1.15.1
[INFO] [stderr]    Compiling either v1.15.0
[INFO] [stderr]     Checking parking_lot_core v0.9.12
[INFO] [stderr]     Checking serde_urlencoded v0.7.1
[INFO] [stderr]     Checking tracing-log v0.2.0
[INFO] [stderr]    Compiling axum-macros v0.5.0
[INFO] [stderr]     Checking parking_lot v0.12.5
[INFO] [stderr]     Checking tower-http v0.6.8
[INFO] [stderr]     Checking icu_provider v2.1.1
[INFO] [stderr]     Checking futures-intrusive v0.5.0
[INFO] [stderr]     Checking icu_properties v2.1.2
[INFO] [stderr]     Checking icu_normalizer v2.1.1
[INFO] [stderr]     Checking simple_asn1 v0.6.4
[INFO] [stderr]     Checking idna_adapter v1.2.1
[INFO] [stderr]    Compiling ppv-lite86 v0.2.21
[INFO] [stderr]     Checking idna v1.1.0
[INFO] [stderr]     Checking url v2.5.8
[INFO] [stderr]    Compiling tokio-stream v0.1.18
[INFO] [stderr]     Checking matchers v0.2.0
[INFO] [stderr]     Checking tracing-subscriber v0.3.22
[INFO] [stderr]    Compiling sqlx-core v0.8.6
[INFO] [stderr]     Checking jsonwebtoken v9.3.1
[INFO] [stderr]     Checking hyper v1.8.1
[INFO] [stderr]     Checking tower v0.5.3
[INFO] [stderr]     Checking hyper-util v0.1.20
[INFO] [stderr]     Checking axum v0.8.8
[INFO] [stderr]    Compiling sqlx-postgres v0.8.6
[INFO] [stderr]    Compiling sqlx-macros-core v0.8.6
[INFO] [stderr]    Compiling sqlx-macros v0.8.6
[INFO] [stderr]     Checking sqlx v0.8.6
[INFO] [stderr]     Checking fiscal-middleware v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/routes/auth.rs:25:18
[INFO] [stdout]    |
[INFO] [stdout] 25 |       let tenant = sqlx::query!(
[INFO] [stdout]    |  __________________^
[INFO] [stdout] 26 | |         r#"
[INFO] [stdout] 27 | |         SELECT id, is_active
[INFO] [stdout] 28 | |         FROM tenants
[INFO] [stdout] ...  |
[INFO] [stdout] 32 | |         api_secret_hash,
[INFO] [stdout] 33 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/routes/auth.rs:25:18
[INFO] [stdout]    |
[INFO] [stdout] 25 |       let tenant = sqlx::query!(
[INFO] [stdout]    |  __________________^
[INFO] [stdout] 26 | |         r#"
[INFO] [stdout] 27 | |         SELECT id, is_active
[INFO] [stdout] 28 | |         FROM tenants
[INFO] [stdout] ...  |
[INFO] [stdout] 32 | |         api_secret_hash,
[INFO] [stdout] 33 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/routes/auth.rs:25:18
[INFO] [stdout]    |
[INFO] [stdout] 25 |       let tenant = sqlx::query!(
[INFO] [stdout]    |  __________________^
[INFO] [stdout] 26 | |         r#"
[INFO] [stdout] 27 | |         SELECT id, is_active
[INFO] [stdout] 28 | |         FROM tenants
[INFO] [stdout] ...  |
[INFO] [stdout] 32 | |         api_secret_hash,
[INFO] [stdout] 33 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/routes/receipts.rs:88:24
[INFO] [stdout]    |
[INFO] [stdout] 88 |           let existing = sqlx::query!(
[INFO] [stdout]    |  ________________________^
[INFO] [stdout] 89 | |             "SELECT id, status FROM receipts WHERE tenant_id = $1 AND idempotency_key = $2",
[INFO] [stdout] 90 | |             tenant_id,
[INFO] [stdout] 91 | |             key
[INFO] [stdout] 92 | |         )
[INFO] [stdout]    | |_________^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/routes/receipts.rs:109:27
[INFO] [stdout]     |
[INFO] [stdout] 109 |               let mapping = sqlx::query!(
[INFO] [stdout]     |  ___________________________^
[INFO] [stdout] 110 | |                 "SELECT spic_code FROM spic_mappings WHERE tenant_id = $1 AND product_id = $2",
[INFO] [stdout] 111 | |                 tenant_id,
[INFO] [stdout] 112 | |                 item.product_id
[INFO] [stdout] 113 | |             )
[INFO] [stdout]     | |_____________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/routes/receipts.rs:130:19
[INFO] [stdout]     |
[INFO] [stdout] 130 |       let receipt = sqlx::query!(
[INFO] [stdout]     |  ___________________^
[INFO] [stdout] 131 | |         r#"
[INFO] [stdout] 132 | |         INSERT INTO receipts (
[INFO] [stdout] 133 | |             tenant_id, external_id, idempotency_key,
[INFO] [stdout] ...   |
[INFO] [stdout] 145 | |         expires_at,
[INFO] [stdout] 146 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/routes/receipts.rs:160:5
[INFO] [stdout]     |
[INFO] [stdout] 160 | /     sqlx::query!(
[INFO] [stdout] 161 | |         r#"
[INFO] [stdout] 162 | |         UPDATE receipts
[INFO] [stdout] 163 | |         SET status = $1,
[INFO] [stdout] ...   |
[INFO] [stdout] 174 | |         receipt.id,
[INFO] [stdout] 175 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/routes/receipts.rs:180:5
[INFO] [stdout]     |
[INFO] [stdout] 180 | /     sqlx::query!(
[INFO] [stdout] 181 | |         r#"
[INFO] [stdout] 182 | |         INSERT INTO audit_log (receipt_id, tenant_id, action, details)
[INFO] [stdout] 183 | |         VALUES ($1, $2, 'submitted', $3)
[INFO] [stdout] ...   |
[INFO] [stdout] 187 | |         json!({ "mode": state.config.ofd_mode, "status": final_status })
[INFO] [stdout] 188 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/routes/receipts.rs:88:24
[INFO] [stdout]    |
[INFO] [stdout] 88 |           let existing = sqlx::query!(
[INFO] [stdout]    |  ________________________^
[INFO] [stdout] 89 | |             "SELECT id, status FROM receipts WHERE tenant_id = $1 AND idempotency_key = $2",
[INFO] [stdout] 90 | |             tenant_id,
[INFO] [stdout] 91 | |             key
[INFO] [stdout] 92 | |         )
[INFO] [stdout]    | |_________^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/routes/receipts.rs:109:27
[INFO] [stdout]     |
[INFO] [stdout] 109 |               let mapping = sqlx::query!(
[INFO] [stdout]     |  ___________________________^
[INFO] [stdout] 110 | |                 "SELECT spic_code FROM spic_mappings WHERE tenant_id = $1 AND product_id = $2",
[INFO] [stdout] 111 | |                 tenant_id,
[INFO] [stdout] 112 | |                 item.product_id
[INFO] [stdout] 113 | |             )
[INFO] [stdout]     | |_____________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/routes/receipts.rs:130:19
[INFO] [stdout]     |
[INFO] [stdout] 130 |       let receipt = sqlx::query!(
[INFO] [stdout]     |  ___________________^
[INFO] [stdout] 131 | |         r#"
[INFO] [stdout] 132 | |         INSERT INTO receipts (
[INFO] [stdout] 133 | |             tenant_id, external_id, idempotency_key,
[INFO] [stdout] ...   |
[INFO] [stdout] 145 | |         expires_at,
[INFO] [stdout] 146 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/routes/receipts.rs:160:5
[INFO] [stdout]     |
[INFO] [stdout] 160 | /     sqlx::query!(
[INFO] [stdout] 161 | |         r#"
[INFO] [stdout] 162 | |         UPDATE receipts
[INFO] [stdout] 163 | |         SET status = $1,
[INFO] [stdout] ...   |
[INFO] [stdout] 174 | |         receipt.id,
[INFO] [stdout] 175 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/routes/receipts.rs:180:5
[INFO] [stdout]     |
[INFO] [stdout] 180 | /     sqlx::query!(
[INFO] [stdout] 181 | |         r#"
[INFO] [stdout] 182 | |         INSERT INTO audit_log (receipt_id, tenant_id, action, details)
[INFO] [stdout] 183 | |         VALUES ($1, $2, 'submitted', $3)
[INFO] [stdout] ...   |
[INFO] [stdout] 187 | |         json!({ "mode": state.config.ofd_mode, "status": final_status })
[INFO] [stdout] 188 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/routes/receipts.rs:88:24
[INFO] [stdout]    |
[INFO] [stdout] 88 |           let existing = sqlx::query!(
[INFO] [stdout]    |  ________________________^
[INFO] [stdout] 89 | |             "SELECT id, status FROM receipts WHERE tenant_id = $1 AND idempotency_key = $2",
[INFO] [stdout] 90 | |             tenant_id,
[INFO] [stdout] 91 | |             key
[INFO] [stdout] 92 | |         )
[INFO] [stdout]    | |_________^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/routes/receipts.rs:109:27
[INFO] [stdout]     |
[INFO] [stdout] 109 |               let mapping = sqlx::query!(
[INFO] [stdout]     |  ___________________________^
[INFO] [stdout] 110 | |                 "SELECT spic_code FROM spic_mappings WHERE tenant_id = $1 AND product_id = $2",
[INFO] [stdout] 111 | |                 tenant_id,
[INFO] [stdout] 112 | |                 item.product_id
[INFO] [stdout] 113 | |             )
[INFO] [stdout]     | |_____________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/routes/receipts.rs:130:19
[INFO] [stdout]     |
[INFO] [stdout] 130 |       let receipt = sqlx::query!(
[INFO] [stdout]     |  ___________________^
[INFO] [stdout] 131 | |         r#"
[INFO] [stdout] 132 | |         INSERT INTO receipts (
[INFO] [stdout] 133 | |             tenant_id, external_id, idempotency_key,
[INFO] [stdout] ...   |
[INFO] [stdout] 145 | |         expires_at,
[INFO] [stdout] 146 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/routes/receipts.rs:160:5
[INFO] [stdout]     |
[INFO] [stdout] 160 | /     sqlx::query!(
[INFO] [stdout] 161 | |         r#"
[INFO] [stdout] 162 | |         UPDATE receipts
[INFO] [stdout] 163 | |         SET status = $1,
[INFO] [stdout] ...   |
[INFO] [stdout] 174 | |         receipt.id,
[INFO] [stdout] 175 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/routes/receipts.rs:180:5
[INFO] [stdout]     |
[INFO] [stdout] 180 | /     sqlx::query!(
[INFO] [stdout] 181 | |         r#"
[INFO] [stdout] 182 | |         INSERT INTO audit_log (receipt_id, tenant_id, action, details)
[INFO] [stdout] 183 | |         VALUES ($1, $2, 'submitted', $3)
[INFO] [stdout] ...   |
[INFO] [stdout] 187 | |         json!({ "mode": state.config.ofd_mode, "status": final_status })
[INFO] [stdout] 188 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/routes/receipts.rs:213:19
[INFO] [stdout]     |
[INFO] [stdout] 213 |       let receipt = sqlx::query!(
[INFO] [stdout]     |  ___________________^
[INFO] [stdout] 214 | |         r#"
[INFO] [stdout] 215 | |         SELECT id, external_id, status, fiscal_sign,
[INFO] [stdout] 216 | |                qr_code_url, receipt_number, created_at, expires_at
[INFO] [stdout] ...   |
[INFO] [stdout] 221 | |         tenant_id
[INFO] [stdout] 222 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/routes/receipts.rs:213:19
[INFO] [stdout]     |
[INFO] [stdout] 213 |       let receipt = sqlx::query!(
[INFO] [stdout]     |  ___________________^
[INFO] [stdout] 214 | |         r#"
[INFO] [stdout] 215 | |         SELECT id, external_id, status, fiscal_sign,
[INFO] [stdout] 216 | |                qr_code_url, receipt_number, created_at, expires_at
[INFO] [stdout] ...   |
[INFO] [stdout] 221 | |         tenant_id
[INFO] [stdout] 222 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/routes/receipts.rs:213:19
[INFO] [stdout]     |
[INFO] [stdout] 213 |       let receipt = sqlx::query!(
[INFO] [stdout]     |  ___________________^
[INFO] [stdout] 214 | |         r#"
[INFO] [stdout] 215 | |         SELECT id, external_id, status, fiscal_sign,
[INFO] [stdout] 216 | |                qr_code_url, receipt_number, created_at, expires_at
[INFO] [stdout] ...   |
[INFO] [stdout] 221 | |         tenant_id
[INFO] [stdout] 222 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/routes/tenants.rs:58:18
[INFO] [stdout]    |
[INFO] [stdout] 58 |       let tenant = sqlx::query_as!(
[INFO] [stdout]    |  __________________^
[INFO] [stdout] 59 | |         TenantResponse,
[INFO] [stdout] 60 | |         r#"
[INFO] [stdout] 61 | |         INSERT INTO tenants (name, inn, api_key, api_secret)
[INFO] [stdout] ...  |
[INFO] [stdout] 68 | |         api_secret_hash,
[INFO] [stdout] 69 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/routes/tenants.rs:58:18
[INFO] [stdout]    |
[INFO] [stdout] 58 |       let tenant = sqlx::query_as!(
[INFO] [stdout]    |  __________________^
[INFO] [stdout] 59 | |         TenantResponse,
[INFO] [stdout] 60 | |         r#"
[INFO] [stdout] 61 | |         INSERT INTO tenants (name, inn, api_key, api_secret)
[INFO] [stdout] ...  |
[INFO] [stdout] 68 | |         api_secret_hash,
[INFO] [stdout] 69 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/routes/tenants.rs:58:18
[INFO] [stdout]    |
[INFO] [stdout] 58 |       let tenant = sqlx::query_as!(
[INFO] [stdout]    |  __________________^
[INFO] [stdout] 59 | |         TenantResponse,
[INFO] [stdout] 60 | |         r#"
[INFO] [stdout] 61 | |         INSERT INTO tenants (name, inn, api_key, api_secret)
[INFO] [stdout] ...  |
[INFO] [stdout] 68 | |         api_secret_hash,
[INFO] [stdout] 69 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/routes/tenants.rs:87:18
[INFO] [stdout]    |
[INFO] [stdout] 87 |       let tenant = sqlx::query_as!(
[INFO] [stdout]    |  __________________^
[INFO] [stdout] 88 | |         TenantResponse,
[INFO] [stdout] 89 | |         r#"
[INFO] [stdout] 90 | |         SELECT id, name, inn, is_active, created_at
[INFO] [stdout] ...  |
[INFO] [stdout] 94 | |         id
[INFO] [stdout] 95 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/routes/auth.rs:25:18
[INFO] [stdout]    |
[INFO] [stdout] 25 |       let tenant = sqlx::query!(
[INFO] [stdout]    |  __________________^
[INFO] [stdout] 26 | |         r#"
[INFO] [stdout] 27 | |         SELECT id, is_active
[INFO] [stdout] 28 | |         FROM tenants
[INFO] [stdout] ...  |
[INFO] [stdout] 32 | |         api_secret_hash,
[INFO] [stdout] 33 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/routes/tenants.rs:87:18
[INFO] [stdout]    |
[INFO] [stdout] 87 |       let tenant = sqlx::query_as!(
[INFO] [stdout]    |  __________________^
[INFO] [stdout] 88 | |         TenantResponse,
[INFO] [stdout] 89 | |         r#"
[INFO] [stdout] 90 | |         SELECT id, name, inn, is_active, created_at
[INFO] [stdout] ...  |
[INFO] [stdout] 94 | |         id
[INFO] [stdout] 95 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/routes/auth.rs:25:18
[INFO] [stdout]    |
[INFO] [stdout] 25 |       let tenant = sqlx::query!(
[INFO] [stdout]    |  __________________^
[INFO] [stdout] 26 | |         r#"
[INFO] [stdout] 27 | |         SELECT id, is_active
[INFO] [stdout] 28 | |         FROM tenants
[INFO] [stdout] ...  |
[INFO] [stdout] 32 | |         api_secret_hash,
[INFO] [stdout] 33 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/routes/tenants.rs:87:18
[INFO] [stdout]    |
[INFO] [stdout] 87 |       let tenant = sqlx::query_as!(
[INFO] [stdout]    |  __________________^
[INFO] [stdout] 88 | |         TenantResponse,
[INFO] [stdout] 89 | |         r#"
[INFO] [stdout] 90 | |         SELECT id, name, inn, is_active, created_at
[INFO] [stdout] ...  |
[INFO] [stdout] 94 | |         id
[INFO] [stdout] 95 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/routes/auth.rs:25:18
[INFO] [stdout]    |
[INFO] [stdout] 25 |       let tenant = sqlx::query!(
[INFO] [stdout]    |  __________________^
[INFO] [stdout] 26 | |         r#"
[INFO] [stdout] 27 | |         SELECT id, is_active
[INFO] [stdout] 28 | |         FROM tenants
[INFO] [stdout] ...  |
[INFO] [stdout] 32 | |         api_secret_hash,
[INFO] [stdout] 33 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Value` and `json`
[INFO] [stdout]  --> src/routes/receipts.rs:9:18
[INFO] [stdout]   |
[INFO] [stdout] 9 | use serde_json::{json, Value};
[INFO] [stdout]   |                  ^^^^  ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/routes/receipts.rs:88:24
[INFO] [stdout]    |
[INFO] [stdout] 88 |           let existing = sqlx::query!(
[INFO] [stdout]    |  ________________________^
[INFO] [stdout] 89 | |             "SELECT id, status FROM receipts WHERE tenant_id = $1 AND idempotency_key = $2",
[INFO] [stdout] 90 | |             tenant_id,
[INFO] [stdout] 91 | |             key
[INFO] [stdout] 92 | |         )
[INFO] [stdout]    | |_________^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/routes/receipts.rs:109:27
[INFO] [stdout]     |
[INFO] [stdout] 109 |               let mapping = sqlx::query!(
[INFO] [stdout]     |  ___________________________^
[INFO] [stdout] 110 | |                 "SELECT spic_code FROM spic_mappings WHERE tenant_id = $1 AND product_id = $2",
[INFO] [stdout] 111 | |                 tenant_id,
[INFO] [stdout] 112 | |                 item.product_id
[INFO] [stdout] 113 | |             )
[INFO] [stdout]     | |_____________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/routes/receipts.rs:130:19
[INFO] [stdout]     |
[INFO] [stdout] 130 |       let receipt = sqlx::query!(
[INFO] [stdout]     |  ___________________^
[INFO] [stdout] 131 | |         r#"
[INFO] [stdout] 132 | |         INSERT INTO receipts (
[INFO] [stdout] 133 | |             tenant_id, external_id, idempotency_key,
[INFO] [stdout] ...   |
[INFO] [stdout] 145 | |         expires_at,
[INFO] [stdout] 146 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/routes/receipts.rs:160:5
[INFO] [stdout]     |
[INFO] [stdout] 160 | /     sqlx::query!(
[INFO] [stdout] 161 | |         r#"
[INFO] [stdout] 162 | |         UPDATE receipts
[INFO] [stdout] 163 | |         SET status = $1,
[INFO] [stdout] ...   |
[INFO] [stdout] 174 | |         receipt.id,
[INFO] [stdout] 175 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/routes/receipts.rs:180:5
[INFO] [stdout]     |
[INFO] [stdout] 180 | /     sqlx::query!(
[INFO] [stdout] 181 | |         r#"
[INFO] [stdout] 182 | |         INSERT INTO audit_log (receipt_id, tenant_id, action, details)
[INFO] [stdout] 183 | |         VALUES ($1, $2, 'submitted', $3)
[INFO] [stdout] ...   |
[INFO] [stdout] 187 | |         json!({ "mode": state.config.ofd_mode, "status": final_status })
[INFO] [stdout] 188 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/routes/receipts.rs:88:24
[INFO] [stdout]    |
[INFO] [stdout] 88 |           let existing = sqlx::query!(
[INFO] [stdout]    |  ________________________^
[INFO] [stdout] 89 | |             "SELECT id, status FROM receipts WHERE tenant_id = $1 AND idempotency_key = $2",
[INFO] [stdout] 90 | |             tenant_id,
[INFO] [stdout] 91 | |             key
[INFO] [stdout] 92 | |         )
[INFO] [stdout]    | |_________^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/routes/receipts.rs:109:27
[INFO] [stdout]     |
[INFO] [stdout] 109 |               let mapping = sqlx::query!(
[INFO] [stdout]     |  ___________________________^
[INFO] [stdout] 110 | |                 "SELECT spic_code FROM spic_mappings WHERE tenant_id = $1 AND product_id = $2",
[INFO] [stdout] 111 | |                 tenant_id,
[INFO] [stdout] 112 | |                 item.product_id
[INFO] [stdout] 113 | |             )
[INFO] [stdout]     | |_____________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/routes/receipts.rs:130:19
[INFO] [stdout]     |
[INFO] [stdout] 130 |       let receipt = sqlx::query!(
[INFO] [stdout]     |  ___________________^
[INFO] [stdout] 131 | |         r#"
[INFO] [stdout] 132 | |         INSERT INTO receipts (
[INFO] [stdout] 133 | |             tenant_id, external_id, idempotency_key,
[INFO] [stdout] ...   |
[INFO] [stdout] 145 | |         expires_at,
[INFO] [stdout] 146 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/routes/receipts.rs:160:5
[INFO] [stdout]     |
[INFO] [stdout] 160 | /     sqlx::query!(
[INFO] [stdout] 161 | |         r#"
[INFO] [stdout] 162 | |         UPDATE receipts
[INFO] [stdout] 163 | |         SET status = $1,
[INFO] [stdout] ...   |
[INFO] [stdout] 174 | |         receipt.id,
[INFO] [stdout] 175 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/routes/receipts.rs:180:5
[INFO] [stdout]     |
[INFO] [stdout] 180 | /     sqlx::query!(
[INFO] [stdout] 181 | |         r#"
[INFO] [stdout] 182 | |         INSERT INTO audit_log (receipt_id, tenant_id, action, details)
[INFO] [stdout] 183 | |         VALUES ($1, $2, 'submitted', $3)
[INFO] [stdout] ...   |
[INFO] [stdout] 187 | |         json!({ "mode": state.config.ofd_mode, "status": final_status })
[INFO] [stdout] 188 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/routes/receipts.rs:88:24
[INFO] [stdout]    |
[INFO] [stdout] 88 |           let existing = sqlx::query!(
[INFO] [stdout]    |  ________________________^
[INFO] [stdout] 89 | |             "SELECT id, status FROM receipts WHERE tenant_id = $1 AND idempotency_key = $2",
[INFO] [stdout] 90 | |             tenant_id,
[INFO] [stdout] 91 | |             key
[INFO] [stdout] 92 | |         )
[INFO] [stdout]    | |_________^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/routes/receipts.rs:109:27
[INFO] [stdout]     |
[INFO] [stdout] 109 |               let mapping = sqlx::query!(
[INFO] [stdout]     |  ___________________________^
[INFO] [stdout] 110 | |                 "SELECT spic_code FROM spic_mappings WHERE tenant_id = $1 AND product_id = $2",
[INFO] [stdout] 111 | |                 tenant_id,
[INFO] [stdout] 112 | |                 item.product_id
[INFO] [stdout] 113 | |             )
[INFO] [stdout]     | |_____________^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/routes/receipts.rs:130:19
[INFO] [stdout]     |
[INFO] [stdout] 130 |       let receipt = sqlx::query!(
[INFO] [stdout]     |  ___________________^
[INFO] [stdout] 131 | |         r#"
[INFO] [stdout] 132 | |         INSERT INTO receipts (
[INFO] [stdout] 133 | |             tenant_id, external_id, idempotency_key,
[INFO] [stdout] ...   |
[INFO] [stdout] 145 | |         expires_at,
[INFO] [stdout] 146 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/routes/receipts.rs:160:5
[INFO] [stdout]     |
[INFO] [stdout] 160 | /     sqlx::query!(
[INFO] [stdout] 161 | |         r#"
[INFO] [stdout] 162 | |         UPDATE receipts
[INFO] [stdout] 163 | |         SET status = $1,
[INFO] [stdout] ...   |
[INFO] [stdout] 174 | |         receipt.id,
[INFO] [stdout] 175 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/routes/receipts.rs:180:5
[INFO] [stdout]     |
[INFO] [stdout] 180 | /     sqlx::query!(
[INFO] [stdout] 181 | |         r#"
[INFO] [stdout] 182 | |         INSERT INTO audit_log (receipt_id, tenant_id, action, details)
[INFO] [stdout] 183 | |         VALUES ($1, $2, 'submitted', $3)
[INFO] [stdout] ...   |
[INFO] [stdout] 187 | |         json!({ "mode": state.config.ofd_mode, "status": final_status })
[INFO] [stdout] 188 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/routes/receipts.rs:213:19
[INFO] [stdout]     |
[INFO] [stdout] 213 |       let receipt = sqlx::query!(
[INFO] [stdout]     |  ___________________^
[INFO] [stdout] 214 | |         r#"
[INFO] [stdout] 215 | |         SELECT id, external_id, status, fiscal_sign,
[INFO] [stdout] 216 | |                qr_code_url, receipt_number, created_at, expires_at
[INFO] [stdout] ...   |
[INFO] [stdout] 221 | |         tenant_id
[INFO] [stdout] 222 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/routes/receipts.rs:213:19
[INFO] [stdout]     |
[INFO] [stdout] 213 |       let receipt = sqlx::query!(
[INFO] [stdout]     |  ___________________^
[INFO] [stdout] 214 | |         r#"
[INFO] [stdout] 215 | |         SELECT id, external_id, status, fiscal_sign,
[INFO] [stdout] 216 | |                qr_code_url, receipt_number, created_at, expires_at
[INFO] [stdout] ...   |
[INFO] [stdout] 221 | |         tenant_id
[INFO] [stdout] 222 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]    --> src/routes/receipts.rs:213:19
[INFO] [stdout]     |
[INFO] [stdout] 213 |       let receipt = sqlx::query!(
[INFO] [stdout]     |  ___________________^
[INFO] [stdout] 214 | |         r#"
[INFO] [stdout] 215 | |         SELECT id, external_id, status, fiscal_sign,
[INFO] [stdout] 216 | |                qr_code_url, receipt_number, created_at, expires_at
[INFO] [stdout] ...   |
[INFO] [stdout] 221 | |         tenant_id
[INFO] [stdout] 222 | |     )
[INFO] [stdout]     | |_____^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/routes/tenants.rs:58:18
[INFO] [stdout]    |
[INFO] [stdout] 58 |       let tenant = sqlx::query_as!(
[INFO] [stdout]    |  __________________^
[INFO] [stdout] 59 | |         TenantResponse,
[INFO] [stdout] 60 | |         r#"
[INFO] [stdout] 61 | |         INSERT INTO tenants (name, inn, api_key, api_secret)
[INFO] [stdout] ...  |
[INFO] [stdout] 68 | |         api_secret_hash,
[INFO] [stdout] 69 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/routes/tenants.rs:58:18
[INFO] [stdout]    |
[INFO] [stdout] 58 |       let tenant = sqlx::query_as!(
[INFO] [stdout]    |  __________________^
[INFO] [stdout] 59 | |         TenantResponse,
[INFO] [stdout] 60 | |         r#"
[INFO] [stdout] 61 | |         INSERT INTO tenants (name, inn, api_key, api_secret)
[INFO] [stdout] ...  |
[INFO] [stdout] 68 | |         api_secret_hash,
[INFO] [stdout] 69 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/routes/tenants.rs:58:18
[INFO] [stdout]    |
[INFO] [stdout] 58 |       let tenant = sqlx::query_as!(
[INFO] [stdout]    |  __________________^
[INFO] [stdout] 59 | |         TenantResponse,
[INFO] [stdout] 60 | |         r#"
[INFO] [stdout] 61 | |         INSERT INTO tenants (name, inn, api_key, api_secret)
[INFO] [stdout] ...  |
[INFO] [stdout] 68 | |         api_secret_hash,
[INFO] [stdout] 69 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/routes/tenants.rs:87:18
[INFO] [stdout]    |
[INFO] [stdout] 87 |       let tenant = sqlx::query_as!(
[INFO] [stdout]    |  __________________^
[INFO] [stdout] 88 | |         TenantResponse,
[INFO] [stdout] 89 | |         r#"
[INFO] [stdout] 90 | |         SELECT id, name, inn, is_active, created_at
[INFO] [stdout] ...  |
[INFO] [stdout] 94 | |         id
[INFO] [stdout] 95 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/routes/tenants.rs:87:18
[INFO] [stdout]    |
[INFO] [stdout] 87 |       let tenant = sqlx::query_as!(
[INFO] [stdout]    |  __________________^
[INFO] [stdout] 88 | |         TenantResponse,
[INFO] [stdout] 89 | |         r#"
[INFO] [stdout] 90 | |         SELECT id, name, inn, is_active, created_at
[INFO] [stdout] ...  |
[INFO] [stdout] 94 | |         id
[INFO] [stdout] 95 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: error communicating with database: Connection refused (os error 111)
[INFO] [stdout]   --> src/routes/tenants.rs:87:18
[INFO] [stdout]    |
[INFO] [stdout] 87 |       let tenant = sqlx::query_as!(
[INFO] [stdout]    |  __________________^
[INFO] [stdout] 88 | |         TenantResponse,
[INFO] [stdout] 89 | |         r#"
[INFO] [stdout] 90 | |         SELECT id, name, inn, is_active, created_at
[INFO] [stdout] ...  |
[INFO] [stdout] 94 | |         id
[INFO] [stdout] 95 | |     )
[INFO] [stdout]    | |_____^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this error originates in the macro `$crate::sqlx_macros::expand_query` which comes from the expansion of the macro `sqlx::query_as` (in Nightly builds, run with -Z macro-backtrace for more info)
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Value` and `json`
[INFO] [stdout]  --> src/routes/receipts.rs:9:18
[INFO] [stdout]   |
[INFO] [stdout] 9 | use serde_json::{json, Value};
[INFO] [stdout]   |                  ^^^^  ^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]   --> src/auth.rs:47:15
[INFO] [stdout]    |
[INFO] [stdout] 47 |     .map_err(|e| AppError::Unauthorized)
[INFO] [stdout]    |               ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `e`
[INFO] [stdout]   --> src/auth.rs:47:15
[INFO] [stdout]    |
[INFO] [stdout] 47 |     .map_err(|e| AppError::Unauthorized)
[INFO] [stdout]    |               ^ help: if this is intentional, prefix it with an underscore: `_e`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `fiscal-middleware` (bin "fiscal-middleware" test) due to 27 previous errors; 2 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stderr] error: could not compile `fiscal-middleware` (bin "fiscal-middleware") due to 27 previous errors; 2 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "d08cf999649fdb3e262ccb7268df7867218c889d73831685daecf34fe863c8a3", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d08cf999649fdb3e262ccb7268df7867218c889d73831685daecf34fe863c8a3", kill_on_drop: false }`
[INFO] [stdout] d08cf999649fdb3e262ccb7268df7867218c889d73831685daecf34fe863c8a3
